import {createStore} from "redux"
import reducer from "./reducer"

let store = createStore(reducer)

// 检测
store.subscribe(() => {
  console.log("状态变化：", store.getState())
})

export default store
